
export default class IComponent
{
    entityId:string = null;
    enable:boolean = true;
    type:string = "";
    constructor()
    {
    }

    protected _clone(target:IComponent)
    {
        target.entityId = this.entityId;
        target.enable = this.enable;
        target.type = this.type;
    }

    /// 深度拷贝
    Clone():IComponent
    {
        return null;
    }

    GetCommand():string 
    {
        return null;
    }
    GetType():string
    {
        return this.type;
    }

    UpdateParams(params:string[]):void {}

    ToString():string {
        return "";
    }
}